package cn.kgc.entity;

import java.util.Date;
import java.io.Serializable;

import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.*;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonFormat;

/**
 * 商品评价回复关系(PmsCommentReplay)表实体类
 *
 * @author 石浩杰
 * @since 2022-12-05 09:38:27
 */
@Setter
@Getter
@AllArgsConstructor
@NoArgsConstructor
@Builder
@TableName(value = "pms_comment_replay")
@SuppressWarnings("serial")
@JsonInclude(value = JsonInclude.Include.NON_NULL)
public class PmsCommentReplay extends Model<PmsCommentReplay> implements Serializable {

    //主键
    @TableId(type = IdType.AUTO)
    private Long id;


    /**
     * 评论id
     **/
    @TableField(value = "comment_id")
    private Long commentId;


    /**
     * 回复id
     **/
    @TableField(value = "reply_id")
    private Long replyId;


    //逻辑删除标志
    @TableLogic
    @JsonIgnore
    @TableField(fill = FieldFill.INSERT)
    private int deleted;


    //创建时间
    @TableField(value = "creationdate", fill = FieldFill.INSERT)
    @JsonIgnore
    private Date creationdate;


    //修改时间
    @TableField(value = "modifydate", fill = FieldFill.UPDATE)
    @JsonIgnore
    private Date modifydate;


    //版本
    @Version
    private int version;


}
